# -*- mode: Python; coding: utf-8; -*-

# katalog zawierający dzielone biblioteki Boost
boost_libdir = '/usr/local/lib64/boost'

Import('env')

tests_env = env.Clone()
tests_env.AppendUnique(LIBPATH = [boost_libdir],
                       LIBS = ['boost_unit_test_framework', 'boost_filesystem'])

test1 = tests_env.Program(target = 'MatrixTest',
                          source = ['MatrixTest.cpp', '../algorithm/Matrix.cpp'])

test2 = tests_env.Program(target = 'PathTest',
                          source = ['PathTest.cpp', '../algorithm/Matrix.cpp', '../algorithm/Path.cpp'])

tests = Alias('tests', [test1, test2])

# alias uruchamiający testy
check = Alias('check', [tests],
              [test1[0].path, test2[0].path])
AlwaysBuild(check)
